package com.arkisv.log.service.impl;

import com.arkisv.common.model.EventLog;
import com.arkisv.log.dao.EventLogMapper;
import com.arkisv.log.service.IEventLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 事件日志Service
 * Created by fb on 2017/2/07.
 */
@Service
public class EventLogServiceImpl implements IEventLogService {
	@Autowired
	private EventLogMapper eventLogDao;

	@Override
	public EventLog get(String eventLogId) {
		return eventLogDao.selectByPrimaryKey(eventLogId);
	}

	@Override
	public List<EventLog> list(EventLog query) {
		List<EventLog> list = eventLogDao.query(query);
		return list;
}
}
